#include "ordersform.h"
#include "ui_ordersform.h"

ordersForm::ordersForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ordersForm)
{
    ui->setupUi(this);
}

ordersForm::~ordersForm()
{
    delete ui;
}

void ordersForm::setOrders(int id, QString date, QString address, QString customer, QString phone,
                           QString state){
    ui->idLb->setText(QString::number(id));
    ui->dateLb->setText(date);
    ui->addressLb->setText(address);
    ui->customerLb->setText(customer);
    ui->phoneLb->setText(phone);
    ui->stateLb->setText(state);
}


int ordersForm::getName()
{
    return ui->idLb->text().toInt();
}
